﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace SLTimeSystem
{
    public class TimeCenter : MonoBehaviour
    {
        public List<TimerAgentBase> Agents = new List<TimerAgentBase>();
        void Update()
        {
            for (int i = 0; i < Agents.Count; i++)
            {
                if (!Agents[i].IsTimeOver)
                {
                    Agents[i].CheckTime();
                }
            }
        }
    }

}
